//
//  ZWLHeaderCollectionViewCell.swift
//  ZWLDY
//
//  Created by zwl on 2016/10/2.
//  Copyright © 2016年 zwl. All rights reserved.
//

import UIKit

class ZWLHeaderCollectionViewCell: UICollectionReusableView {

    @IBOutlet weak var iconView: UIImageView!
   
    @IBOutlet weak var preLabel: UILabel!
    
    @IBOutlet weak var morebtn: UIButton!
    // MARK:- 定义模型属性
    var group : AnchorGroup? {
        didSet {
            preLabel.text = group?.tag_name
            iconView.image = UIImage(named: group?.icon_name ?? "home_header_normal")
        }
    }
}

extension ZWLHeaderCollectionViewCell {
    class func headerCollectionViewCell() -> ZWLHeaderCollectionViewCell {
        return Bundle.main.loadNibNamed("ZWLHeaderCollectionViewCell", owner: nil, options: nil)?.last as! ZWLHeaderCollectionViewCell
    }
}
